/*
 * Server.java
 *
 * Distributed Systems: Project 2
 *
 */

package unimelb.distSystems.communications;

import unimelb.distSystems.project2.Configurations;


public class Server {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    	String address=Configurations.host;//Default value
    	int port_no=Configurations.port_number;//Default value
    	
    	if(args.length==2)
    	{
    		address=args[0];
    		port_no=Integer.parseInt(args[1]);
    		System.out.println("Read: "+address+":"+port_no);
    	}
    	
        GameServer gServer = new GameServer(address,port_no);
        Thread thread = new Thread(gServer);
        thread.start();
    }

}
